import { defineStore } from 'pinia'
import  {
    kchart1,
    bst1,
    bst2,
    lct1
} from '../api/mock/base/risk-tui-shi.js'


export const useResultTuishi = defineStore('result-base-risk-tui-shi', {
    state: () => {
        return {
            count: 10,
            name: 'xx',
            kchart1,
            bst1,
            bst2,
            lct1,
        }
    },
    getters: {
        doubleCount: (state) => state.count * 2,
        doublePlusOne: (state)=>{
            return state.doubleCount + '-ss'
        }
    },
    actions:{
        increment() {
            this.count++
        },
        asyncIncrement() {
            setTimeout(() => this.count++, 1000)
        },
        async insertPost(data){
            // 可以做异步
            // await doAjaxRequest(data);
            // this.name = data;
        },
    }
})
